﻿using System;

class LabyrinthGame
{
    static void Main()
    {
        ScoreBoard scoreBoard = new ScoreBoard();
        Random randomGenerator = new Random();
        Game game = new Game(randomGenerator, scoreBoard);
        Action playerAction = Action.None;

        while (playerAction != Action.Exit)
        {
            playerAction = game.Play();
            if (playerAction == Action.Restart)
            {
                game = new Game(randomGenerator, scoreBoard);
            }
        }
    }
}
